<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>TTS Helper</title>
    <link rel="stylesheet" href="/static/style.css">
</head>
<body>
    <div class="container">
        <h1>TTS Helper</h1>
        <div class="control-panel">
            <div class="section">
                <h2>模型目录</h2>
                <input type="text" id="modelDir" placeholder="输入模型目录路径">
                <button onclick="setModelDir()">设置</button>
            </div>
            
            <div class="section">
                <h2>模型列表</h2>
                <select id="modelList" onchange="selectModel(this.value)">
                    <option value="">请选择模型</option>
                </select>
                <button onclick="refreshModelList()">刷新</button>
            </div>

            <div class="section">
                <h2>语音合成</h2>
                <textarea id="text" placeholder="输入要合成的文本"></textarea>
                <div class="buttons">
                    <button onclick="startSynthesis()">开始合成</button>
                    <button onclick="stopSynthesis()">停止合成</button>
                </div>
            </div>
        </div>
    </div>
    <script src="/static/script.js"></script>
</body>
</html>
